﻿@model IEnumerable<Core.Contract.DataContract.RelaxStoryDataContract>
@if (Model != null)
{
    foreach (var item in Model)
    {
    <div class="readfun">
        <div class="imgredstory">
            <img src="/@item.Image" alt="@item.Name"/>
        </div>
        <div class="deinfo">
            <div class="row name">@item.Name</div>
            <div class="content detail-content">
                @if (HttpUtility.HtmlDecode(item.Decription).Length > 80)
                {
                    <span>@Html.Raw(HttpUtility.HtmlDecode(item.Decription).Substring(0, 80)) + "..." </span> 
                    <a href="/Home/Story/@Session["Culture"]/@item.Id/@item.Tag">Xem chi tiết...</a>
                }
                else
                {
                    <span>@Html.Raw(HttpUtility.HtmlDecode(item.Decription));</span> 
                    <a href="/Home/Story/@Session["Culture"]/@item.Id/@item.Tag">Xem chi tiết...</a>
                }
            </div>
        </div>
    </div>
    }
    <div class="watchmore">
        <a href="/">Xem thêm...</a>
    </div>
        
}